<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>



	<div class="col-md-6">
		<form action="${pageContext.request.contextPath}/student?action=courseList" method="post">
			<div class="input-group" style="width: 300px">
				<input type="text" class="form-control" name="department"  value="${d_depart.departName }" placeholder="请输入开课院系名...">
				<span class="input-group-btn">
		        <button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-search"></span>&nbsp;查询</button>
		      </span>
			</div>
		</form>
	</div>

<div>
	<table class="table table-hover  table-bordered table-striped" style="margin-bottom: 0px;">
		<tr>
			<th>序号</th>
			<th>课程名称</th>
			<th>学分</th>
			<th>授课老师</th>
			<th>开课学院</th>
			<th>课程介绍</th>
			<th>选课时间</th>
			<th>开课日期</th>
			<th>开课周数</th>
			<th>课程可选人数</th>
			<th>课程已选人数</th>
		</tr>
		<c:forEach var="course" items="${courseList }" varStatus="status">
			<tr>
				<td>${status.index+1 }</td>
				<td>${course.courseName }</td>
				<td>${course.credit }</td>
				<td>${course.teacherName }</td>
				<td>${course.department }</td>
				<td>${course.introduction }</td>
				<td>${course.checkTime }</td>
				<td>${course.courseDate }</td>
				<td>${course.courseWeek }</td>
				<td>${course.selectNum }</td>
				<td>${course.selectedNum }</td>
			</tr>
		</c:forEach>
	</table>
	<nav >
		<ul class="pagination">
			${pageCode }
		</ul>
	</nav>
</div>



